import { createSSRApp } from "vue";
export function createApp(storeState = {}) {
  return createSSRApp({
    template: `<div>
        <div>{{msg}}</div>
        <div>{{count}}</div>
        <button @click="count++">增加</button>
    </div>`,
    data() {
      return {
        msg: "Hello World",
        count: storeState.count,
      };
    },
  });
}
